package com.zjj.day0425.integer;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/25
 */
public class StringDouble {
        public static void main(String[] args) {
            double a = 12.5;
            String aToString = Double.toString(a);
            String result1 = aToString + 10;
            System.out.println("a转换为String类型后+10的结果为:" + result1);

            String str = "2.8";
            double strToDouble = Double.parseDouble(str);
            double result2 = strToDouble + 10;
            System.out.println("str转换为double型后+10的结果为:" + result2);
        }
    }
